#define _CRT_SECURE_NO_WARNINGS
#include"link.h"

void testlink1()
{
	Lnode* st = initial();
	/*insertfront(st, 1);
	insertfront(st, 2);
	insertfront(st, 3);
	insertfront(st, 4);
	printLink(st);*/
	inserttail(st, 1);
	inserttail(st, 2);
	inserttail(st, 3);
	inserttail(st, 4);
	printLink(st);
	Lnode* price= find(st,4);
	printf("%d\n", price->data);
	deletenode(st, 1);
	printLink(st);
	assigninsert(st, 4,4);
	assigninsert(st, 1, 1);
	printLink(st);



}

int main()
{
	testlink1();
	return 0;
}